using Nekonya.UI;
using TinaX;
using TinaX.UIKit;
using UnityEngine;

namespace Nekonya
{
    public class GameBootstrap : IXBootstrap
    {
        public void OnInit(IXCore core) { }

        public void OnStart(IXCore core)
        {
            core.GetService<IUIKit>().OpenUIAsync("entryMenu", new EntryMenuScreen(), (ui, err) =>
            {
                if (err != null)
                    Debug.LogError("打开入口菜单UI时报错：" + err.Message);
            });
        }

        public void OnQuit() { }
        public void OnAppRestart() { }
    }
}
